import Cookies from 'js-cookie'

export const getMapData = () => {
  console.log(JSON.parse(Cookies.get('map-data')))
  return JSON.parse(Cookies.get('map-data'))
}

export const setMapData = data => {
  return Cookies.set('map-data', JSON.stringify(data))
}
